package com.sxkiler.demo.junitcase;

import cn.hutool.core.util.RandomUtil;

import java.util.Random;

public class NameGenerator {

    static String[] name = {"大阿二","热啊","大芬","罚到","测试","房间","客户","车场","阿问"};
    public static String getName(String prefix,int index){
        return prefix+"-"+ name[RandomUtil.randomInt(0,index+1) % 9] + "-" + name[RandomUtil.randomInt(0,index+1) % 9] + "-" + name[RandomUtil.randomInt(0,index+1) % 9] + "-" + RandomUtil.randomInt(0,index+1);
    }
}
